import request from '@/utils/request'

// 查询商品——阅读列表
export function listRead(query) {
  return request({
    url: '/market/read/list',
    method: 'get',
    params: query
  })
}

// 查询商品——阅读详细
export function getRead(id) {
  return request({
    url: '/market/read/' + id,
    method: 'get'
  })
}

// 新增商品——阅读
export function addRead(data) {
  return request({
    url: '/market/read',
    method: 'post',
    data: data
  })
}

// 修改商品——阅读
export function updateRead(data) {
  return request({
    url: '/market/read',
    method: 'put',
    data: data
  })
}

// 删除商品——阅读
export function delRead(id) {
  return request({
    url: '/market/read/' + id,
    method: 'delete'
  })
}
